<div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2>Clientes</h2>
    <ul>
        <li><?php echo $this->Html->link('ADICIONAR','/clientes/add/'); ?></li>
    </ul>
</div>
<div class="block_content">
    <table width="100%" cellspacing="0" cellpadding="0">

        <tbody>
            <tr>
                <!--td width="10"><input type="checkbox" class="check_all"></td-->
                <th><?php echo $paginator->sort('Nome', 'nome') ?></th>
                <th><?php echo $paginator->sort('Descrição', 'descricao') ?></th>
                <th><?php echo $paginator->sort('Telefone', 'telefone') ?></th>
                <th><?php echo $paginator->sort('Site', 'site') ?></th>
                <td>&nbsp;</td>
            </tr>
            <?php foreach ($clientes as $cliente) {
            ?>
                <tr>
                    <!--td><input type="checkbox"></td-->
                    <td><?php echo $this->Html->link($cliente['Cliente']['nome'],'/clientes/view/'.$cliente['Cliente']['id']); ?></td>
                    <td><?php echo $cliente['Cliente']['descricao']; ?></td>
                    <td><?php echo $cliente['Cliente']['telefone']; ?></td>
                    <td>
                        <a href="<?php echo $cliente['Cliente']['site']; ?>" target="_blank"
                           ><?php echo $cliente['Cliente']['site']; ?>
                        </a>
                    </td>
                    <td class="delete"><a href="<?php echo $this->Html->url('/clientes/edit/'); ?><?php echo $cliente['Cliente']['id']; ?>">Editar</a></td>
                </tr>
            <?php } //foreach clientes  ?>
        </tbody>
    </table>
    <?php echo $this->Element('pagination'); ?>
</div>
